<name>Midnight Well</name>
<profession>The water is cool</profession>
<dialogue>
  <greeting>
    <reply>
      <if>
        <key>midnightwaterbooked</key>
        <key>!midnightwaterdone</key>
      </if>
      <text>You brought a bucket.</text>
      <script>
        <sound>well</sound>
      </script>
      <return>main</return>
    </reply>
    <reply>
      <text></text>
      <script>
        <sound>well</sound>
      </script>
      <return>main</return>
    </reply>
  </greeting>
  <main>
    <option>
      <text>Drink from the well.</text>
      <npc>
        <reply>
          <text>Refreshing!</text>
          <return>main</return> 
        </reply>
      </npc>
    </option>
    <option>
      <if>
        <key>midnightwaterbooked</key>
        <key>!midnightwaterdone</key>
      </if>
      <text>Fill the bucket.</text>
      <npc>
        <reply>
          <text>You have some Midnight Water.</text>
          <script>
            <key>midnightwaterdone</key>
            <item>Midnight Water</item>
            <quest>Heal Vassago|You have the midnight water</quest>
            <log>Got some midnight water from the well</log>
          </script>
          <return>main</return> 
        </reply>
      </npc>
    </option>
    <option>
      <text>Turn away.</text>
      <npc>
        <reply>
          <return>exit</return> 
        </reply>
      </npc>
    </option>
  </main> 
</dialogue>